package com.hilaver.dzmis.order;

import java.util.Date;

import com.hilaver.dzmis.basicinfo.BiFactory;
import com.hilaver.dzmis.product.ProductDZColor;


public class OrderProductItem {
	private Integer id;
	private Integer size1Quantity;
	private Integer size2Quantity;
	private Integer size3Quantity;
	private Integer size4Quantity;
	private Integer size5Quantity;
	private Integer size6Quantity;
	private Integer size7Quantity;
	private Integer size8Quantity;
	private Integer total;
	private OrderProduct orderProduct;
	private ProductDZColor productDZColor;
	
	private String isStock;
	private Date scheduleDate;
	private Date stockDate;
	private Integer size1QuantityConsistent;
	private Integer size1QuantityNotConsistent;
	private Integer size2QuantityConsistent;
	private Integer size2QuantityNotConsistent;
	private Integer size3QuantityConsistent;
	private Integer size3QuantityNotConsistent;
	private Integer size4QuantityConsistent;
	private Integer size4QuantityNotConsistent;
	private Integer size5QuantityConsistent;
	private Integer size5QuantityNotConsistent;
	private Integer size6QuantityConsistent;
	private Integer size6QuantityNotConsistent;
	private Integer size7QuantityConsistent;
	private Integer size7QuantityNotConsistent;
	private Integer size8QuantityConsistent;
	private Integer size8QuantityNotConsistent;
	private BiFactory biFactory;
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getSize1Quantity() {
		return size1Quantity;
	}
	public void setSize1Quantity(Integer size1Quantity) {
		this.size1Quantity = size1Quantity;
	}
	public Integer getSize2Quantity() {
		return size2Quantity;
	}
	public void setSize2Quantity(Integer size2Quantity) {
		this.size2Quantity = size2Quantity;
	}
	public Integer getSize3Quantity() {
		return size3Quantity;
	}
	public void setSize3Quantity(Integer size3Quantity) {
		this.size3Quantity = size3Quantity;
	}
	public Integer getSize4Quantity() {
		return size4Quantity;
	}
	public void setSize4Quantity(Integer size4Quantity) {
		this.size4Quantity = size4Quantity;
	}
	public Integer getSize5Quantity() {
		return size5Quantity;
	}
	public void setSize5Quantity(Integer size5Quantity) {
		this.size5Quantity = size5Quantity;
	}
	public Integer getSize6Quantity() {
		return size6Quantity;
	}
	public void setSize6Quantity(Integer size6Quantity) {
		this.size6Quantity = size6Quantity;
	}
	public Integer getSize7Quantity() {
		return size7Quantity;
	}
	public void setSize7Quantity(Integer size7Quantity) {
		this.size7Quantity = size7Quantity;
	}
	public Integer getSize8Quantity() {
		return size8Quantity;
	}
	public void setSize8Quantity(Integer size8Quantity) {
		this.size8Quantity = size8Quantity;
	}
	public Integer getTotal() {
		return total;
	}
	public void setTotal(Integer total) {
		this.total = total;
	}
	public OrderProduct getOrderProduct() {
		return orderProduct;
	}
	public void setOrderProduct(OrderProduct orderProduct) {
		this.orderProduct = orderProduct;
	}
	public ProductDZColor getProductDZColor() {
		return productDZColor;
	}
	public void setProductDZColor(ProductDZColor productDZColor) {
		this.productDZColor = productDZColor;
	}
	
	public String getVariant(){
		return this.productDZColor.getVariant();
	}
	public String getIsStock() {
		return isStock;
	}
	public void setIsStock(String isStock) {
		this.isStock = isStock;
	}
	public Date getScheduleDate() {
		return scheduleDate;
	}
	public void setScheduleDate(Date scheduleDate) {
		this.scheduleDate = scheduleDate;
	}
	public Date getStockDate() {
		return stockDate;
	}
	public void setStockDate(Date stockDate) {
		this.stockDate = stockDate;
	}
	
	public BiFactory getBiFactory() {
		return biFactory;
	}
	public void setBiFactory(BiFactory biFactory) {
		this.biFactory = biFactory;
	}
	public Integer getSize1QuantityConsistent() {
		return size1QuantityConsistent;
	}
	public void setSize1QuantityConsistent(Integer size1QuantityConsistent) {
		this.size1QuantityConsistent = size1QuantityConsistent;
	}
	public Integer getSize1QuantityNotConsistent() {
		return size1QuantityNotConsistent;
	}
	public void setSize1QuantityNotConsistent(Integer size1QuantityNotConsistent) {
		this.size1QuantityNotConsistent = size1QuantityNotConsistent;
	}
	public Integer getSize2QuantityConsistent() {
		return size2QuantityConsistent;
	}
	public void setSize2QuantityConsistent(Integer size2QuantityConsistent) {
		this.size2QuantityConsistent = size2QuantityConsistent;
	}
	public Integer getSize2QuantityNotConsistent() {
		return size2QuantityNotConsistent;
	}
	public void setSize2QuantityNotConsistent(Integer size2QuantityNotConsistent) {
		this.size2QuantityNotConsistent = size2QuantityNotConsistent;
	}
	public Integer getSize3QuantityConsistent() {
		return size3QuantityConsistent;
	}
	public void setSize3QuantityConsistent(Integer size3QuantityConsistent) {
		this.size3QuantityConsistent = size3QuantityConsistent;
	}
	public Integer getSize3QuantityNotConsistent() {
		return size3QuantityNotConsistent;
	}
	public void setSize3QuantityNotConsistent(Integer size3QuantityNotConsistent) {
		this.size3QuantityNotConsistent = size3QuantityNotConsistent;
	}
	public Integer getSize4QuantityConsistent() {
		return size4QuantityConsistent;
	}
	public void setSize4QuantityConsistent(Integer size4QuantityConsistent) {
		this.size4QuantityConsistent = size4QuantityConsistent;
	}
	public Integer getSize4QuantityNotConsistent() {
		return size4QuantityNotConsistent;
	}
	public void setSize4QuantityNotConsistent(Integer size4QuantityNotConsistent) {
		this.size4QuantityNotConsistent = size4QuantityNotConsistent;
	}
	public Integer getSize5QuantityConsistent() {
		return size5QuantityConsistent;
	}
	public void setSize5QuantityConsistent(Integer size5QuantityConsistent) {
		this.size5QuantityConsistent = size5QuantityConsistent;
	}
	public Integer getSize5QuantityNotConsistent() {
		return size5QuantityNotConsistent;
	}
	public void setSize5QuantityNotConsistent(Integer size5QuantityNotConsistent) {
		this.size5QuantityNotConsistent = size5QuantityNotConsistent;
	}
	public Integer getSize6QuantityConsistent() {
		return size6QuantityConsistent;
	}
	public void setSize6QuantityConsistent(Integer size6QuantityConsistent) {
		this.size6QuantityConsistent = size6QuantityConsistent;
	}
	public Integer getSize6QuantityNotConsistent() {
		return size6QuantityNotConsistent;
	}
	public void setSize6QuantityNotConsistent(Integer size6QuantityNotConsistent) {
		this.size6QuantityNotConsistent = size6QuantityNotConsistent;
	}
	public Integer getSize7QuantityConsistent() {
		return size7QuantityConsistent;
	}
	public void setSize7QuantityConsistent(Integer size7QuantityConsistent) {
		this.size7QuantityConsistent = size7QuantityConsistent;
	}
	public Integer getSize7QuantityNotConsistent() {
		return size7QuantityNotConsistent;
	}
	public void setSize7QuantityNotConsistent(Integer size7QuantityNotConsistent) {
		this.size7QuantityNotConsistent = size7QuantityNotConsistent;
	}
	public Integer getSize8QuantityConsistent() {
		return size8QuantityConsistent;
	}
	public void setSize8QuantityConsistent(Integer size8QuantityConsistent) {
		this.size8QuantityConsistent = size8QuantityConsistent;
	}
	public Integer getSize8QuantityNotConsistent() {
		return size8QuantityNotConsistent;
	}
	public void setSize8QuantityNotConsistent(Integer size8QuantityNotConsistent) {
		this.size8QuantityNotConsistent = size8QuantityNotConsistent;
	}
	public Integer getSizeTotal(Integer sizeIndex){
		Integer total;
		switch (sizeIndex) {
		case 0:
			total = this.total;
			break;
		case 1:
			total = this.size1Quantity;
			break;
		case 2:
			total = this.size2Quantity;
			break;
		case 3:
			total = this.size3Quantity;
			break;
		case 4:
			total = this.size4Quantity;
			break;
		case 5:
			total = this.size5Quantity;
			break;
		case 6:
			total = this.size6Quantity;
			break;
		case 7:
			total = this.size7Quantity;
			break;
		case 8:
			total = this.size8Quantity;
			break;
		default:
			total = 0;
			break;
		}
		return total==null?0:total;
	}
	
}
